#include "orangepch.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLVertexArray.h"
namespace Orange
{
    Ref<VertexArray> VertexArray::Create()
    {
        switch (Renderer::GetApi())
        {
        case RendererApi::API::None:
            ORANGE_CORE_ASSERT(false, " API is not support! ");
            return nullptr;
        case RendererApi::API::OpenGL:
            return std::make_shared<OpenGLVertexArray>();
        }
        ORANGE_CORE_ASSERT(false, "Renderer API is unknown! ");
        return nullptr;
    };
}